package org.springblade.modules.admin.vo.plan.store;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.admin.entity.MaintainMalfunctionHistory;

import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2024/4/18 14:13
 */
@Data
public class WxStoreAddQuestionVo {

	@ApiModelProperty("工单结果id-work表的id值")
	private Long scoreWorkId;

	@ApiModelProperty("工单id")
	private Long planId;

	@ApiModelProperty("评分描述")
	private String scoreDesc;


	@ApiModelProperty("维修-故障原因ids")
	private List<String> wxFaultIds;

	@ApiModelProperty("维修-故障原因ids")
	private String wxFaultCauseIds;

	@ApiModelProperty("维修-故障原因其它描述")
	private String wxFaultCauseDesc;


	@ApiModelProperty("维修-问题责任ids")
	private String wxFaultTypeIds;

	@ApiModelProperty("维修-问题责任ids")
	private List<String> wxTypeIds;

	@ApiModelProperty("维修-问题责任其它描述")
	private String wxFaultTypeDesc;

	@ApiModelProperty("问题记录")
	private List<MaintainMalfunctionHistory> maintainMalfunctionHistorys;

	public void setWxFaultIds(List<String> wxFaultIds) {
		this.wxFaultIds = wxFaultIds;
		if (wxFaultIds != null && wxFaultIds.size() > 0) {
			this.wxFaultCauseIds = String.join(",", wxFaultIds);
		}
	}

	public void setWxTypeIds(List<String> wxTypeIds) {
		this.wxTypeIds = wxTypeIds;
		if (wxTypeIds != null && wxTypeIds.size() > 0) {
			this.wxFaultTypeIds = String.join(",", wxTypeIds);
		}
	}

}
